package com.tianji.learning.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "修改笔记实体")
public class EditNoteDTO {

    @ApiModelProperty(value = "是否被隐藏 - 0.显示，1.隐藏；默认0")
    @NotNull(message = "是否被隐藏")
    private boolean isPrivate;

    @ApiModelProperty(value = "笔记内容")
    private String content;
}
